# SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
# SPDX-FileCopyrightText: 2011-2024 EfficiOS Inc.

TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/../..

include $(TOP_LTTNG_MODULES_DIR)/src/Kbuild.common

ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)/include

obj-$(CONFIG_LTTNG) += lttng-lib-ring-buffer.o

lttng-lib-ring-buffer-objs := \
  ringbuffer/ring_buffer_backend.o \
  ringbuffer/ring_buffer_frontend.o \
  ringbuffer/ring_buffer_iterator.o \
  ringbuffer/ring_buffer_vfs.o \
  ringbuffer/ring_buffer_splice.o \
  ringbuffer/ring_buffer_mmap.o \
  prio_heap/lttng_prio_heap.o

obj-$(CONFIG_LTTNG) += lttng-counter.o

lttng-counter-objs := \
  counter/counter.o

# vim:syntax=make
